// html转化为纯文本，筛选掉img
export const ToText = (HTML) => {
    var input = HTML;
    return input
      .replace(/<(style|script|iframe)[^>]*?>[\s\S]+?<\/\1\s*>/gi, '')
      .replace(/<[^>]+?>/g, '')
      .replace(/\s+/g, '')
      .replace(/ /g, '')
      .replace(/>/g, '')
      .replace(/&nbsp;/g, '');
  };